import { createRouter, createWebHistory } from 'vue-router';
import baseRoute, { LoginRoute } from "./routes";
import type { App } from 'vue'

export const WHITE_NAME = [LoginRoute.name];

const router =createRouter({
  history: createWebHistory(),
  routes: [...baseRoute],
  strict: true,
})

export function setupRouter(app: App) {
  app.use(router)
}

export default router;
